import service from '@/utils/request'
// @Tags LsGood
// @Summary 创建lsGood表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsGood true "创建lsGood表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /lsGood/createLsGood [post]
export const createLsGood = (data) => {
  return service({
    url: '/lsGood/createLsGood',
    method: 'post',
    data
  })
}

// @Tags LsGood
// @Summary 删除lsGood表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsGood true "删除lsGood表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lsGood/deleteLsGood [delete]
export const deleteLsGood = (params) => {
  return service({
    url: '/lsGood/deleteLsGood',
    method: 'delete',
    params
  })
}

// @Tags LsGood
// @Summary 批量删除lsGood表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除lsGood表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /lsGood/deleteLsGood [delete]
export const deleteLsGoodByIds = (params) => {
  return service({
    url: '/lsGood/deleteLsGoodByIds',
    method: 'delete',
    params
  })
}

// @Tags LsGood
// @Summary 更新lsGood表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.LsGood true "更新lsGood表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /lsGood/updateLsGood [put]
export const updateLsGood = (data) => {
  return service({
    url: '/lsGood/updateLsGood',
    method: 'put',
    data
  })
}

// @Tags LsGood
// @Summary 用id查询lsGood表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.LsGood true "用id查询lsGood表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /lsGood/findLsGood [get]
export const findLsGood = (params) => {
  return service({
    url: '/lsGood/findLsGood',
    method: 'get',
    params
  })
}

// @Tags LsGood
// @Summary 分页获取lsGood表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取lsGood表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /lsGood/getLsGoodList [get]
export const getLsGoodList = (params) => {
  return service({
    url: '/lsGood/getLsGoodList',
    method: 'get',
    params
  })
}
export const getTypeGroups = () => {
  return service({
    url: '/lsGood/getTypeGroups',
    method: 'get'
  })
}
// @Tags LsGood
// @Summary 不需要鉴权的lsGood表接口
// @Accept application/json
// @Produce application/json
// @Param data query goodReq.LsGoodSearch true "分页获取lsGood表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /lsGood/getLsGoodPublic [get]
export const getLsGoodPublic = () => {
  return service({
    url: '/lsGood/getLsGoodPublic',
    method: 'get',
  })
}
